<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="template/template.xhtml">
	<ui:define name="content">

		<h:form>
			<p:panelGrid columns="2">
				<f:facet name="header">
			        Login
			    </f:facet>

				<h:outputLabel value="User Name: *" />
				<p:inputText id="username" required="true" value="#{username}" />

				<h:outputLabel value="Password: *" />
				<p:password id="password" required="true" value="#{password}" />

				<f:facet name="footer">
					<p:commandButton value="Login" icon="ui-icon-check"
						action="#{loginController.login(username, password)}" />
				</f:facet>
			</p:panelGrid>
		</h:form>

	</ui:define>
</ui:composition>
</html>